package com.example.lastwork.dao;


import com.example.lastwork.common.dao.LogicDAO;
import com.example.lastwork.entity.User;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface UserDao extends LogicDAO<User, Long> {
    @Query("SELECT u FROM User u WHERE u.id = :userId AND u.password = :password")
    User getUserByIdByPassword(@Param("userId") Long userId, @Param("password") String password);
}








